package com.redis.core.repository;

import com.redis.core.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author xieshue
 * @date 2017\10\27 0027
 */
public interface UserRepository extends JpaRepository<User, Long> {
    /**
     * 根据用户名称获取用户
     *
     * @param userName
     * @return
     */
    User findByUserName(String userName);
}
